﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

public partial class EditorUtil
{
    /// <summary>
    /// 打开文件目录
    /// </summary>
    /// <param name="FolderPath"></param>
    public static void OpenFolderPath(string FolderPath)
    {
        Application.OpenURL("file:///" + FolderPath);
    }
    /// <summary>
    /// 打包文件
    /// </summary>
    /// <param name="assetName"></param>
    /// <param name="pathName"></param>
    public static void ExportFolder(string assetName, string pathName)
    {
        AssetDatabase.ExportPackage(assetName, pathName, ExportPackageOptions.Recurse);
    }
    /// <summary>
    /// 复用按键
    /// </summary>
    /// <param name="Item"></param>
    public static void CallMenuItem(string Item)
    {
        UnityEditor.EditorApplication.ExecuteMenuItem(Item);
    }
}
